package com.jackiechan.domain;

/**
 * 书的实体类
 * param：
 *  id：id
 *  name：书名
 *  author：作者
 *  comment：推荐语
 *  state：状态（0暂缺，1在架）
 *  counter：数量
 *  press：出版社
 *  price：价格
 */
public class Books {
    private Integer id;
    private String name;
    private String author;
    private String comment;
    private Integer state;
    private Integer counter;
    private String press;
    private Double price;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getCounter() {
        return counter;
    }

    public void setCounter(Integer counter) {
        this.counter = counter;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Books = {" +
                "id：" + id +
                ", 书名：" + name +
                ", 作者：" + author +
                ", 推荐语：" + comment +
                ", 状态：" + state +
                ", 数量：" + counter +
                ", 出版社：" + press +
                ", 价格：" + price +
                '}';
    }
}
